import inApproval from '@/assets/approval/inapproval.png'
import reject from '@/assets/approval/reject.png'
import ended from '@/assets/approval/ended.png'
import proSuccess from '@/assets/approval/pro-success.png'
export const processApprovalTypeObj: any = {
  payment: '确认客户已付款审批',
  materialOrderChange: '材料下单-修改申请',
  materialOrderRestock: '补货申请',
  supplementary: '新增补充协议审批',
  '': '材料下单'
}
export const signBusinessTypeStatus: any = {
  1: '平层-标准',
  2: '平层-定制',
  3: '别墅',
}
export const processInfo: any = {
  0: '关闭',
  1: '通过',
  2: '拒绝',
}
export const processNode: any = {
  0: {
    name: '结束',
    color: '',
  },
  1: {
    name: '系统',
    color: '',
  },
  2: {
    name: '未结束',
    color: '',
  },
  3: {
    name: '已结束',
    color: '',
  },
  4: {
    name: '已提交',
    color: '',
  },
  5: {
    name: '待重新提交',
    color: '',
  },
  6: {
    name: '待提交',
    color: '',
  },
  7: {
    name: '待审批',
    color: '',
  },
  9: {
    name: '已驳回',
    color: '#FA2D19',
  },
  10: {
    name: '已同意',
    color: '#43972a',
  },
  11: {
    name: '审批中',
    color: '#0061FF',
  },
  12: {
    name: '已关闭',
    color: '',
  },
}
export const processNodeNext = [11, 3, 10, 9]
export const processStateList: any = {
  12: {
    status: '已通过',
    logo: proSuccess,
  },
  11: {
    status: '审批中',
    logo: inApproval,
  },
  13: {
    status: '已拒绝',
    logo: reject,
  },
  14: {
    status: '已结束',
    logo: ended,
  },
 
}
export const materialState: any = {
  2: {
    status: '已通过',
    logo: proSuccess,
  },
  3: {
    status: '审批中',
    logo: inApproval,
  },
  4: {
    status: '已拒绝',
    logo: reject,
  },
  5: {
    status: '已完成',
    logo: proSuccess,
  },
  6: {
    status: '下单中',
    logo: proSuccess,
  },
}
export const paymentProState: any = {
  0: {
    status: '未发起',
    logo: inApproval,
  },
  10: {
    status: '审批中',
    logo: inApproval,
  },
  20: {
    status: '已拒绝',
    logo: reject,
  },
  30: {
    status: '已通过',
    logo: proSuccess,
  },
}
export const supplementaryProState: any = {
  10: '审批中',
  20: '已拒绝',
  30: '已通过',
}
export const paymentStatus: any = {
  0: '服务预订单',
  10: '首期款',
  20: '中期款',
  30: '尾款',
  40: '非节点收款',
}

//正则校验表情
export const approvalReg = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig;